package com.ocl.www.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import com.ocl.www.config.TargetDataSource;
import com.ocl.www.domain.UserRole;
import com.ocl.www.mapper.UserRoleMapper;

@Service
public class UserRoleService {

	@Autowired
	private UserRoleMapper userRoleMapper;
	/**
	 * 
	 * @Title: UserService
	 * @Description: 查询用户信息
	 * @param: @param user
	 * @param: @return
	 * @param: @throws Exception
	 * @return: User
	 * @throws
	 */
	public List<UserRole> selectUserRoles (UserRole userrole)  throws Exception {
		
			return userRoleMapper.selectUserRoles(userrole);
		
	}
}
